import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import { Toast, Notify } from "vant"


Vue.config.productionTip = false

// 全局的公共样式
import "@/styles/index.scss"


// 全局混入
import "@/utils/mixin"

// 引入vant 插件
import Vant from 'vant';
import 'vant/lib/index.css';
import { ImagePreview } from 'vant';
Vue.use(Vant)
Vue.use(ImagePreview);


// 淘宝适配
import "lib-flexible"


import { bus } from "@/utils/bus"
Vue.prototype.$bus = bus

// axios
import { axios } from "@/api/request"
Vue.prototype.$axios = axios;

// 全局注册组件 
import "@/components"


// 挂载正则对象
import { reg } from "@/utils/validate"
Vue.prototype.$reg = reg;

// 全局的ajax
import { ajax } from "@/api/index"
Vue.prototype.$ajax = ajax;

// 全局的过滤器 指令  配置
import "@/utils/golbal"


new Vue({
  // 挂载到根实例
  router,
  store,
  render: h => h(App)
}).$mount('#app')
